package com.example.demo.service.impl;

import com.example.demo.entity.Middle;
import com.example.demo.mapper.MiddleMapper;
import com.example.demo.service.MiddleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author
 * @Description
 */
@Service
public class MiddleServiceImpl implements MiddleService {

    @Autowired
    private MiddleMapper middleMapper;
    @Override
    public List<Middle> findMiddleListByUserId(Integer userId) {
        List<Middle> list = middleMapper.findMiddleListByUserId(userId);
        return list;
    }
}
